package com.guan.ordering_sys.common;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 分页后返回的数据
 *
 * @author olay
 * @version 1.0
 * @date 6/2/2021 9:19 PM
 */
@Data
@Accessors(chain = true)
public class PageResult<T> {
    public PageResult(int total, List<T> rows){
        this.total = total;
        this.rows = rows;
    }

    private int total;
    private List<T> rows;
}
